home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / mslang / mfcvbx / bigicon.h_ / bigicon.h
Encoding:
C/C++ Source or Header  |  1993-10-01  |  3.1 KB  |  142 lines

  1. //
  2. // $Id$
  3. //
  4. // Module    :     BigIcon.h
  5. //
  6. // Author    :     James Bish
  7. //
  8. // Date        :     06/15/93
  9. //
  10. // $Log$
  11. //
  12. // Copyright (c) Bish Programming 1993 - All Rights Reserved.
  13. //
  14.  
  15. //
  16. // Bitmaps for Visual Basic Toolbar
  17. //
  18. #define IDBMP_BIGICON        8000
  19. #define IDBMP_BIGICONDOWN    8001
  20. #define IDBMP_BIGICONMONO    8003
  21. #define IDBMP_BIGICONEGA     8006
  22.  
  23. #ifndef RC_INVOKED
  24.  
  25. #ifndef __BIGICON_H__
  26. #define __BIGICON_H__
  27.  
  28. #include "mfcvbx.h"
  29. #include "vbxpw.h"
  30. #include "mfcdlg.h"
  31.  
  32. #define OFFSETIN( struct, field) ((USHORT)&(((struct *)0)->field))
  33.  
  34. typedef struct _tagBigIcon {
  35.     HPIC        hpicPict;
  36.     int            ShadowWidth;
  37.     COLORREF    ShadowColor;
  38.     BOOL        About;
  39. } BigIcon;    
  40.  
  41. typedef BigIcon FAR *LPBIGICON;
  42.  
  43. #define LpBigIconDEREF(hctl)    ((LPBIGICON)VBDerefControl(hctl))
  44.  
  45. //
  46. // Property list
  47. //
  48. // Define the consecutive indicies for the properties
  49. //
  50. #define IPROP_BIGICON_CTLNAME                  0
  51. #define IPROP_BIGICON_INDEX                    1
  52. #define IPROP_BIGICON_LEFT                     2
  53. #define IPROP_BIGICON_TOP                      3
  54. #define IPROP_BIGICON_WIDTH                    4
  55. #define IPROP_BIGICON_HEIGHT                   5
  56. #define IPROP_BIGICON_VISIBLE                  6
  57. #define IPROP_BIGICON_PARENT                   7
  58. #define IPROP_BIGICON_DRAGMODE                 8
  59. #define IPROP_BIGICON_DRAGICON                9
  60. #define IPROP_BIGICON_TAG                     10
  61. #define IPROP_BIGICON_HWND                    11
  62. #define IPROP_BIGICON_BKCOLOR                12
  63. #define IPROP_BIGICON_PICT                    13
  64. #define IPROP_BIGICON_SHADOWWIDTH            14
  65. #define IPROP_BIGICON_SHADOWCOLOR            15
  66. #define IPROP_BIGICON_ABOUT                    16
  67.  
  68.  
  69. //
  70. // Event list
  71. //
  72. // Define the consecutive indicies for the events
  73. //
  74. #define IEVENT_BIGICON_CLICK            0
  75. #define IEVENT_BIGICON_DRAGDROP         1
  76. #define IEVENT_BIGICON_DRAGOVER         2
  77.  
  78. //
  79. // Class Declarations for the BigIcon Control.
  80. //
  81.  
  82. class myPopupWnd : public CVBPopupWnd
  83. {
  84. public:         
  85.     myPopupWnd();
  86.     myPopupWnd(CVBCtlWnd *pCtl, USHORT iProperty);
  87.     
  88.     void DoPopupDlg();    
  89. };               
  90.  
  91. class myCtlWnd : public CVBCtlWnd
  92. {
  93.     DECLARE_DYNCREATE(myCtlWnd)
  94. public:
  95.     myCtlWnd();
  96.     
  97.     myCtlWnd( HWND hWnd );
  98.     
  99.     afx_msg void OnPaint();
  100.     afx_msg void OnNcDestroy();
  101.     afx_msg int     OnCreate(LPCREATESTRUCT lpCreateStruct);
  102.     
  103.     
  104.     afx_msg LRESULT OnVBSetProperty(WPARAM wp, LPARAM lp);
  105.     afx_msg LRESULT OnVBCheckProperty(WPARAM wp, LPARAM lp);
  106.     afx_msg LRESULT OnVBInitPropPopup(WPARAM wp, LPARAM lp);    
  107.     afx_msg LRESULT OnVBGetPropertyHsz(WPARAM wp, LPARAM lp);
  108.     
  109.     DECLARE_MESSAGE_MAP()
  110. };    
  111.     
  112.     
  113. class mytestCtlWnd : public CVBCtlWnd
  114. {
  115.     DECLARE_DYNCREATE(mytestCtlWnd)
  116. public:
  117.     mytestCtlWnd();
  118.     
  119.     mytestCtlWnd( HWND hWnd );
  120.     
  121.     afx_msg void OnPaint();
  122.     afx_msg void OnNcDestroy();
  123.     afx_msg int     OnCreate(LPCREATESTRUCT lpCreateStruct);
  124.     
  125.     DECLARE_MESSAGE_MAP()
  126. };    
  127.     
  128. class myVBDLL : public CVBDLL
  129. {
  130. public:
  131.     int    fAboutDlgInUse;
  132.  
  133.     BOOL InitInstance();
  134.     void InitModel();
  135. };
  136.  
  137. #endif  // __BIGICON_H__
  138.  
  139. #endif  // RC_INVOKED
  140.  
  141. //---------------------------------------------------------------------------
  142.